package edu.hgnc.selfBDRPP;

import edu.hgnc.beans.Student;
import lombok.Setter;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.core.PriorityOrdered;

public class CustomBeanDefinitionRegisterPostProcessor2 implements BeanDefinitionRegistryPostProcessor , PriorityOrdered {

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Modify the application context's internal bean factory after its standard
	 * initialization.
	 */
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("CBDRPP-2-------postProcessBeanFactory");
	}

	/**
	 * Modify the application context's internal bean definition registry after its
	 * standard initialization.
	 */
	@Override
	public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
		System.out.println("CBDRPP-2-------postProcessBeanDefinitionRegistry");
	}

	/**
	 * Get the order value of this object.
	 */
	@Override
	public int getOrder() {
		return 0;
	}
}
